package com.mapper;

import com.pojo.Repairquotation;
import com.vo.LineVo;
import com.vo.RepairquotationVo;

import java.util.List;

public interface RepairquotationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Repairquotation record);

    int insertSelective(Repairquotation record);

    Repairquotation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Repairquotation record);

    int updateByPrimaryKey(Repairquotation record);
    /***
     * 添加报修缴费单
     * @param repairquotationVo
     * @return
     */
    public int addRepairQuotation(RepairquotationVo repairquotationVo);
    /***
     * 业主查询维修费
     */
    public List<Repairquotation> OwnerSelectQuotation(RepairquotationVo repairquotationVo);

    /***
     * 业主根据id将状态改为已缴费
     * @param id
     * @return
     */
    public int OwnerUpdateQuotationState(Integer id);


    /**
     * 查询所有的金额
     */

    public List<LineVo> selectallrepairquotation();
}